package de.gzork.zmpp;

import java.io.Reader;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;

import org.zmpp.io.IOSystem;

public class IOSystemTextBased implements IOSystem {

	private String commandString;
	Reader reader;
	Writer writer;
	
	public IOSystemTextBased() {
		this.commandString = "";
		reader = new StringReader(commandString);
		writer = new StringWriter();
	}
	
	@Override
	public Reader getInputStreamReader() {
		return reader;
	}

	@Override
	public Writer getTranscriptWriter() {
		return writer;
	}

	public void setCommandString(String commandString) {
		this.commandString = commandString;
	}

	public String getCommandString() {
		return commandString;
	}

}
